package com.example.dml.observer_pattern.guava;

import com.google.common.eventbus.EventBus;

/**
 * @Authors：gaoyang
 * @CreateTime：2021/11/3 22:55
 * @Description：todo
 */
public class GuavaEventTest {

    public static void main(String[] args) {
        EventBus eventBus = new EventBus();
        GuavaEvent guavaEvent = new GuavaEvent();
        eventBus.register(guavaEvent);
        eventBus.post("tom");
    }
}
